package com.focusai.efairy.ui.adapter.project;

import com.focusai.efairy.R;
import com.focusai.efairy.model.project.OnItemClickEditorListener;
import com.focusai.efairy.model.response.ProjectManageResponse;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerAdapter;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerViewHolder;

/**
 * Created by luo_guangwen on 2017/9/12.
 */

public class ProjectUserDevAdapter extends BaseRecyclerAdapter<ProjectManageResponse.DevItem> {

    private OnItemClickEditorListener<ProjectManageResponse.UserItem> listener;

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_text;
    }

    @Override
    protected void onBindBaseRecyclerViewHolder(BaseRecyclerViewHolder holder, final int position) {
        holder.setText(R.id.text_lable, mList.get(position).efairydevice_name);
        holder.setText(R.id.text_value, mList.get(position).efairydevice_id +"");

    }

    public void setListener(OnItemClickEditorListener<ProjectManageResponse.UserItem> listener) {
        this.listener = listener;
    }
}
